-
Notifications
You must be signed in to change notification settings - Fork 199
Enhancement - Optimise CNSFileAccessConfig reconciliation workflow #3647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement - Optimise CNSFileAccessConfig reconciliation workflow #3647
Conversation
Skipping CI for Draft Pull Request. |
104bc28
to
6e47686
Compare
/ok-to-test |
/assign @kolluria |
SUCCESS --- Jenkins Build #435 |
SUCCESS --- Jenkins Build #459 |
6e47686
to
862388b
Compare
/retest |
/test pull-vsphere-csi-driver-verify-golangci-lint |
862388b
to
0214892
Compare
Updated reconciler to use status subresource endpoint to update status Updated reconciler to ignore updates without any generation change
0214892
to
d2b1f0d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: divyenpatel, kolluria The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it
Updates CNSFileAccessConfig reconciler to use status subresource endpoint to update status to avoid unintentional and unnecessary generation increments.
Updates the reconciler to ignore events that do not have a change in the generation number.
Testing done
In case of multiple reconciliations of an instance
Created some dummy CRs and verified that the generation is unchanged in multiple reconciles
List CR output
Delete workflow
Provision and attach RWX PVC in a guest cluster
Observations:
The behaviour of the reconciler is as expected in all the cases and the generation of the CRs remained at
1
.Special notes for your reviewer:
Release note: